import request from '@/utils/request'

export function getAll() {
  return request({
    url: '/admin/configGroup/getAll',
    method: 'get'
  })
}

export function disable(data) {
  return request({
    url: '/admin/configGroup/disable',
    method: 'post',
    data
  })
}

export function enable(data) {
  return request({
    url: '/admin/configGroup/enable',
    method: 'post',
    data
  })
}

export function createGroup(data) {
  return request({
    url: '/admin/configGroup/add',
    method: 'post',
    data
  })
}

export function updateGroup(data) {
  return request({
    url: '/admin/configGroup/edit',
    method: 'post',
    data
  })
}

export function delGroup(data) {
  return request({
    url: '/admin/configGroup/del',
    method: 'post',
    data
  })
}
